package ve.com.wayoyo.wuml_case.popup;

import android.view.View;

public class FactoryPopup {

	public static void getPopup(View v, String tipo)
	{
		if (tipo.equals("Clases"))
		{
			ClasePopup dw = new ClasePopup(v);
			dw.showLikeQuickAction(0, -100);
		} else if (tipo.equals("ER"))
		{
			EntidadPopup dw = new EntidadPopup(v);
    		dw.showLikeQuickAction(0, -100);
		} else if (tipo.equals("Grafos"))
		{
			NodoPopup dw = new NodoPopup(v);
			dw.showLikeQuickAction(0, -100);
		} else if (tipo.equals("Otros"))
		{
			OtrosPopup dw = new OtrosPopup(v);
			dw.showLikeQuickAction(0, -100);
		} else if (tipo.equals("Conectores"))
		{
			ConnectorPopup dw = new ConnectorPopup(v);
			dw.showLikeQuickAction(0, -100);
		}
	}
}
